<?php
class IndexController extends ExtendedController
{
    public function __construct()
    {
        parent::__construct();
        $session =& Session::getInstance();
        $session->set('top-menu-item','dashboard');
    }
        
    function index()
    {
        $view = $this->loadView('index');
        $view->setBlockData('hello world');
        $view->setBlockData('Administer panel','title');
        $session =& Session::getInstance();
        $session->set('component','dashboard');        
        $view->setBlock('v-menu',NULL);
        $view->addJs('abc.js');
        $view->render();
    }
}
 
